package gov.pbc.nn.kjgl.item.entity;

import java.util.Date;

import gov.pbc.nn.kjgl.item.template.entity.AbstractItem;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;

@Entity
@Table(name = "T_MAINTAIN_ITEM")
public class MaintainItem extends AbstractItem {

	private static final long serialVersionUID = 1342472505358271437L;

	@Column(name = "DEPT_ID_", length = 60)
	private String deptId;

	@Column(name = "DEPT_NAME_", length = 300)
	@PropertyDef(label = "申请部门", description = "申请部门:申请部门")
	private String deptName;

	@Column(name = "TIME_", length = 60)
	@PropertyDef(label = "申请日期", description = "申请日期:申请日期")
	private Date time;

	@Column(name = "USER_CNAME_", length = 120)
	@PropertyDef(label = "申请人姓名", description = "申请人姓名:申请人姓名")
	private String userCname;

	@Column(name = "TEL_", length = 120)
	@PropertyDef(label = "联系电话", description = "联系电话:联系电话")
	private String tel;

	@Column(name = "REASON_", length = 1000)
	@PropertyDef(label = "维护事由", description = "事由:事由")
	private String reason;

	@Column(name = "SQ_DEPT_OPINION_", length = 540)
	@PropertyDef(label = "申请部门负责人意见", description = "申请部门负责人意见:申请部门负责人意见")
	private String sqDeptOpinion;

	@Lob
	@PropertyDef(label = "申请部门负责人意见(盖章)", description = "申请部门负责人意见(盖章):申请部门负责人意见(盖章)")
	@Column(name = "SIGN_IMG_")
	private byte[] signImg;

	public byte[] getSignImg() {
		return signImg;
	}

	public void setSignImg(byte[] signImg) {
		this.signImg = signImg;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getUserCname() {
		return userCname;
	}

	public void setUserCname(String userCname) {
		this.userCname = userCname;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getSqDeptOpinion() {
		return sqDeptOpinion;
	}

	public void setSqDeptOpinion(String sqDeptOpinion) {
		this.sqDeptOpinion = sqDeptOpinion;
	}

}
